package c18类加载和反射;

import java.net.*;

public class Bootstrap类加载器 {
	public static void main(String[] args) {
		//获取根类加载器所加载的全部URL数组
		URL[] urls = sun.misc.Launcher.getBootstrapClassPath().getURLs(); //这行代码提示编译错误，无需理会，一样可以运行！
		//遍历、输出根类加载器加载的全部URL
		for (int i = 0; i < urls.length; i++) {
			System.err.println(urls[i].toExternalForm());
		}
	}
}

